<?php echo '<?xml version="1.0" encoding="utf-8"?>'; ?>
<rss version="2.0">
<channel>
<title>Noti Hoy</title>
<link> <?php echo url_for('homepage', array(), true) ?> </link>
<language>es-ar</language>
<description>NotiHoy - Ultimas Noticias</description>
<docs><?php echo url_for('new', array('sf_format' => 'xml'), true) ?></docs>   

<generator>NotiHoy.com.ar - RSS</generator>



<?php foreach ($blog_news_atom as $new): ?>
    <item>
      <title><?php echo $new->getTitle() ?></title>
      
      <link href="<?php echo url_for('new_show_user', $new, true) ?>" />     
      
      <pubDate><?php echo gmstrftime('%Y-%m-%dT%H:%M:%SZ', $new->getDateTimeObject('updated_at')->format('U')) ?></pubDate>
      
      <description><?php echo $new->getSummary() ?></description>
      
      
      <?php if ($new->getMediums(1)): ?>
           <image>
             <?php
             foreach ($new->getMediums(1) as $new_medium) {   
                 
                   echo '<url>http://'.$sf_request->getHost().$new_medium->getFolder().'/'.$new_medium->getUrl().'</url>';
                   echo '<title>'.$new->getTitle().'</title>';
                   
            }
            
            ?>
               <link href="<?php echo url_for('new_show_user', $new, true) ?>" />     
           </image>   
      <?php endif ?>
           
         
    </item>
  
<?php endforeach ?>

    </channel>
</rss>

